package com.cgwx.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("minio_file_version")
@ApiModel(value="MinioFileVersion", description="")
public class MinioFileVersion implements Serializable {
    private static final long serialVersionUID = 554591787534007807L;

    private Integer id;

    private String fileId;

    private String fileUrl;

    private String versionId;

    private String fileName;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp gmtCreated;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp gmtModified;

    private String fileUrlDev;

    private String versionNumber;

    private String fileType;

    private String versionName;

    private String attachment;

    private String version;

    private String entityId;

    @Override
    public String toString() {
        return "MinioFileVersion{" +
                "id=" + id +
                ", fileId='" + fileId + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                ", versionId='" + versionId + '\'' +
                ", fileName='" + fileName + '\'' +
                ", gmtCreated=" + gmtCreated +
                ", gmtModified=" + gmtModified +
                ", fileUrlDev='" + fileUrlDev + '\'' +
                ", versionNumber='" + versionNumber + '\'' +
                ", fileType='" + fileType + '\'' +
                ", versionName='" + versionName + '\'' +
                ", attachment='" + attachment + '\'' +
                ", version='" + version + '\'' +
                ", entityId='" + entityId + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Timestamp getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(Timestamp gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public Timestamp getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Timestamp gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getFileUrlDev() {
        return fileUrlDev;
    }

    public void setFileUrlDev(String fileUrlDev) {
        this.fileUrlDev = fileUrlDev;
    }

    public String getVersionNumber() {
        return versionNumber;
    }

    public void setVersionNumber(String versionNumber) {
        this.versionNumber = versionNumber;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }
}

